{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}琢越网{% endblock %}

{% block custom_js %}<script src="{% static 'js/jquery-3.3.1.min.js' %}"></script>{% endblock %}
{% block custom_css %}<link rel="stylesheet" href="{% static 'css/mystyle.css' %}">{% endblock %}

{% block content %}
    <div class="row clearfix main-bk">
        <br></br>
        <div class="row clearfix"><!--为了控制格式-->
            <div class="col-md-8 column white-bk  col-column"style="margin-left:225px"><!--忘记密码框-->
                <form action="{% url 'modify_pwd' %}" method="post" class="form-horizontal" role="form" >
                    <fieldset>
                        <legend style="line-height:250%;color:black;font-weight:900;text-align:center;">修&nbsp;改&nbsp;密&nbsp;码</legend>
                        <div class="form-group" >
                            <label for="password1" class="col-sm-offset-2 col-sm-2 control-label">新密码</label>
                            <div class="col-sm-5">
                                <input name="password1" class="form-control" id="password1" type="password" />
                            </div>
                        </div>
                        <br></br>
                        <input type="hidden" name="email" value="{{ email }}">
                        <div class="form-group">
                            <label for="password2" class="col-sm-offset-2 col-sm-2 control-label">确认密码</label>
                            <div class="col-sm-5">
                                <input name="password2" class="form-control" id="password2" type="password"/>
                            </div>
                            <div class="col-sm-3">
                                <p class="tips2">{{ msg }}</p>
                            </div>
                        </div>
                        <br></br>
                        <div class="form-group">
                            <div class="col-sm-offset-5 col-sm-2">
                                <button onclick="validForget()" type="submit" class="btn btn-warning btn-default">提交</button>
                            </div>
                        </div>
                    </fieldset>
                {% csrf_token %}
                </form>
            </div>
        </div>
        <br></br>
    </div>
{% endblock %}
{% block custom_script %}
{% endblock %}